<html xmlns:tomboy="http://beatniksoftware.com/tomboy" xmlns:link="http://beatniksoftware.com/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>rails start</title><style type="text/css">
        
	body {  }
	h1 { font-size: xx-large;
     	     font-weight: bold;
     	     border-bottom: 1px solid black; }
	div.note {
		   position: relative;
		   display: block;
		   padding: 5pt;
		   margin: 5pt; 
		   white-space: -moz-pre-wrap; /* Mozilla */
 	      	   white-space: -pre-wrap;     /* Opera 4 - 6 */
 	      	   white-space: -o-pre-wrap;   /* Opera 7 */
 	      	   white-space: pre-wrap;      /* CSS3 */
 	      	   word-wrap: break-word;      /* IE 5.5+ */ }
	</style></head><body><div class="note" id="rails start"><a name="rails start"></a><h1>rails start</h1>
1.  可以用git commit向文件中写入注释
2. 当要开启多个rails项目时，为避免端口冲突，可以使用rails s -    p  3001为项目制定特定当端口号
3. git config alias 可以修改命令当快捷键
4. git config core.editor 'vim sublime'设置默认打开工具
5. 页面中建议使用×××_path链接到其他地发，而controller中则建议用×××_url（new_post_path/url<strike>
</strike>6. rake -T可以查看rake能做什么操作<strike> </strike>
7. 删除表结构可以在migrate中当create之前添加drop_table（小写），然后rake db:migrate


gem "therubyracer"
gem "less-<a style="color:#204A87" href="rails.html">rails</a>" 
gem "twitter-bootstrap-<a style="color:#204A87" href="rails.html">rails</a>"

<a style="color:#204A87" href="rails.html">rails</a> generate bootstrap:<a style="color:#204A87" href="../mongodb/Install.html">install</a> less

<a style="color:#204A87" href="rails.html">rails</a> g bootstrap:layout application fluid

<a style="color:#204A87" href="rails.html">rails</a> g bootstrap:themed Posts


</div></body></html>